package org.lzy.aibg.controller;

import org.lzy.aibg.pojo.User;
import org.lzy.aibg.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public class UserController {
    @Autowired
    private UserService userService;


    public List<User> getAll(){
        System.out.println("getAll in UserController");
        return userService.getALl();
    }
}
